<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>



<div id="cusUserContainer" class="box tabbedBox">
	<div class="header">
		<ul>
			<li><a class="current" href="#basicInfo">用户基本资料</a></li>
			<li><a href="#wechatUserInfo">用户微信资料</a></li>
			<li><a href="#messgeHistory">历史沟通记录（<label
					id="messgeHistoryCount" style="color:red"></label>）</a></li>
		</ul>
		<h2>&nbsp;</h2>
	</div>
	<div style="padding:0" class="content tabbed">
		<div id="basicInfo">
			<jsp:include page="basicInfo.jsp"></jsp:include>
		</div>
		<div id="wechatUserInfo">
			<div class="header">
				<h2>&nbsp;&nbsp;微信资料</h2>
			</div>
			<table class=" form-table">
				<tbody>
					<tr>
						<td class="td1">头像：</td>
						<td class="td2"><img src="${model.headimgurl}" width="150"
							height="150">
						</td>
					</tr>
					<tr>
						<td class="td1">微信昵称：</td>
						<td class="td2">${model.nickname}</td>
					</tr>
					<tr>
						<td class="td1">所在地区：</td>
						<td class="td2">${model.country}/${model.province}/${model.city}</td>
					</tr>
				</tbody>
			</table>
		</div>
		<div id="messgeHistory">
			<isperp:grid url="app/chat/listChats?openid=${model.openid }"
				showSearchbar="true" gridId="appChatsGrid" showToolbar="true"
				rownumbers="true" height="auto" cusFormatterActions="false"
				loadComplete=" $('#messgeHistoryCount').text(appChatsGrid.jqGrid.getGridParam('records'));">
				<isperp:column name="id" title="id" hidden="true"></isperp:column>
				<isperp:column name="senderName" title="发送者" width="100">
				</isperp:column>
				<isperp:column name="sendTime" title="发送时间" width="130">
				</isperp:column>
				<isperp:column name="sendContent" title="内容" width="500">
				</isperp:column>
			</isperp:grid>
		</div>
	</div>
</div>


